import type { Column } from './types'

export const PAGE_SIZE = 30 //默认查询记录数
export const PAGE_LAYOUT = 'total, sizes, prev, pager, next, jumper'
export function hooks() {
  const COLUMN_DEFAULT: Column = {
    label: '',
    prop: '',
    columnKey: '',
    sortable: 'custom',
    showOverflowTooltip: true,
    formatter: undefined,
    filters: undefined,
    width: undefined,
    fixed: undefined,

    search: 'text',
    scope: '',
    isCreate: true,
    isShow: true,
    isExport: true,
    isGbk: false // sort 时增加(gbk)
  }

  return { PAGE_SIZE, COLUMN_DEFAULT }
}
